package org.ainlolcat.ainscience.project;

import org.ainlolcat.ainscience.entity.Entity;
import org.ainlolcat.ainscience.metaentity.MetaEntity;
import org.ainlolcat.ainscience.templates.Template;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 27.02.12
 * Time: 9:57
 * To change this template use File | Settings | File Templates.
 */
public class TypeEntityFilter implements Filter{
    String type;
    
    public TypeEntityFilter(String type){
        this.type = type;
    }
    
    public boolean isAccepted(MetaEntity me) {
        return me.getType().equals(type);
    }

    public boolean isAccepted(Entity e) {
        return e.getType().equals(type);
    }

    public boolean isAccepted(Template t) {
        return false;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
